package com.haighcom.service.impl;

import com.haighcom.mapper.UserDao;
import com.haighcom.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.haighcom.model.User;

import java.util.Set;

/**
 * 用户服务
 */
@Service
public class UserServiceImpl implements UserService {
    @Autowired
    private UserDao userDao;

    @Override
    public User findByUserName(String username) {
       User user = userDao.findByUsername(username);//查询用户基本信息，不包含用户的角色

        return user;
    }
}
